import requests


class get_faceid:
    def get_faceid(self):
        t.get_token()
        t.get_auth_token("17620533205", "123456", "0")
        url6 = "https://open.dairphone.cn/jfdevice/getbindopenidlist?ver=1.0&from=hardware"
        data6 = {
            "token": self.token,
            "auth_token": self.auth_token,
            "sn": "SMIT3B2019816000090",
            "version": "3.4.0"
        }
        result6 = requests.post(url6, data=data6, headers=self.headers)
        results6 = result6.json()
        self.faceid = results6['data']['list'][0]['id']